﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace Wix.Aura.Common.CustomTypes {
	public class Location {
		private Location(LocationValue value) {
			Value = value;
		}

		private LocationValue Value { get; set; }

		public override string ToString() {
			return Value.ToString().ToLower(CultureInfo.InvariantCulture);
		}

		public static Location Local { get { return new Location(LocationValue.Local); } }
		public static Location Source { get { return new Location(LocationValue.Source); } }
		public static Location Either { get { return new Location(LocationValue.Either); } }
	}

	public enum LocationValue {
		Local,
		Source,
		Either
	}
}
